#pragma once
#include <assert.h>

void* my_memset(void* ptr,int value,size_t num)
{
	assert(ptr);
	void* base = ptr;
	while (num--)
	{
		*(char*)ptr = value;
		ptr = (char*)ptr + 1;
	}
	return base;
}
